package ipt.pru.f2;

import java.util.ArrayList;

public class ProbarArrayList {

	/**
	 * Metodo que visualiza un arrayList utilizando un for mejorado de java
	 */
	public static void main(String[] args) {
	
		ArrayList<Alumno> arrayAlumnos=new ArrayList<Alumno>();
		arrayAlumnos=Alumno.inicializarTXTArrayList("data/Alumnos.txt", 1000);
		
		for (Alumno a : arrayAlumnos){
			System.out.println("----------");
			System.out.println(a.getNombre());
			System.out.println(a.getApellido1());
			System.out.println(a.getApellido2());
			System.out.println(a.getEdad());
			System.out.println(a.getDni());
						
		}

	}

}
